<%@ page language="java" contentType="text/html; charset=UTF-8"   pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	function loginsubmit() {
		
		var submitOK = false;
		var member_id=formlogin.MEMBER_ID.value;
		var member_pw=formlogin.MEMBER_PW.value;
		
		if(member_id=="" || member_id.length < 1){
			alert("ID를 확인하세요");
		}else if(member_pw=="" || member_pw.length < 1){
			alert("PW를 확인하세요");
		}else{
			submitOK=true;
			formlogin.PAGE_NEXT.value="/home";
		}		
			
		return submitOK;
	}
</script>
<c:if test="${Login_msg !=null }">
	<script type="text/javascript">
		alert('${Login_msg}');
	</script>
</c:if>


</head>
<body>
<form name="formlogin" action="/member/actionlogin" method="post">
<div><%@include file="/WEB-INF/views/include/top.jsp" %></div>
	<input type="radio" name="MEMBER_DIVISION" value="N">
	<input type="radio" name="MEMBER_DIVISION" value="B" >
	<input type="text" name="MEMBER_ID" id="MEMBER_ID" value="">
	<input type="text" name="MEMBER_PW" id="MEMBER_PW" value="">
	<input type="submit" value="로그인" onclick="return loginsubmit()">
</form>
</body>
</html>